-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds support to reference external or prebuilt image references #3269
Conversation
b99846e
to
2286573
Compare
Azure Dev CLI Install InstructionsInstall scriptsMacOS/Linux
bash:
pwsh:
WindowsPowerShell install
MSI install
Standalone Binary
MSIContainer
Documentationlearn.microsoft.com documentationtitle: Azure Developer CLI reference
|
Adds the ability to reference public or prebuilt image references.
Features
image
property at the root of service configuration only valid forcontainerapp
image
property within docker configuration options to set image name generationtag
property for generating final docker image path & tagsNotes:
project
defined) the docker configuration options allow developer to reference existing container images.image
setting does not contain a registry endpoint then docker hub is assumed.project
andimage
are mutually exclusive and cannot be set at the same timecontoso.azurecr.io/myapp:latest
can be referenced as well.Examples
Reference a public image from docker hub
In this example the project is referencing the prebuilt image
nginx
for acontainerapp
service. No application code or building is required. The container app revision will directly reference the public image on docker hub.Reference a public image and copy it to private azure container registry
In this example the image reference
nginx
will be tagged and pushed to thecontoso.azurecr.io
azure container registry duringazd deploy
. The container app revision will reference the copied nginx image on the specified registry.Reference a public image and rename while copying to azure container registry
In this example the image reference
nginx
will be tagged with the specified image/tag and pushed to thecontoso.azurecr.io
azure container registry duringazd deploy
. The container app revision will reference the copied nginx image on the specified registry.Generates the following fully qualified image tag:
contoso.azurecr.io/my-custom-nginx:latest
tagged from the publicnginx
image.